package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.pojo.order.Trading;
import com.qingcheng.service.order.TradingService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController
@RequestMapping("/trading")
public class TradingController {
    @Reference
    private TradingService tradingService;

    @GetMapping("/findTrading")
    public Trading findTrading(){
        LocalDate localDate=LocalDate.now();

        return tradingService.findTranding(localDate);

    }


}
